home *** CD-ROM | disk | FTP | other *** search
-
-
-
- VVVVkkkkCCCCmmmmddddFFFFaaaaccccttttoooorrrryyyy((((3333xxxx)))) VVVVkkkkCCCCmmmmddddFFFFaaaaccccttttoooorrrryyyy((((3333xxxx))))
-
-
-
- NNNNAAAAMMMMEEEE
- VkCmdFactory - produces VkCmd objects
-
- IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
- VkCallbackObject
-
- HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
- #include <Vk/VkCmdFactory.h>
-
- CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The VkCmdFactory is an optional class that provides some useful
- services for applications that use VkCmd objects. Although VkCmd
- objects can be executed directly or via a VkCmdManager, the
- VkCmdFactory is useful when commands can be executed from multiple
- sources. For example, some applications might make an operation
- available to the user from a menu bar, a toolbar, a popup menu, and
- perhaps other parts of a user interface. A VkCmdFactory provides a
- central object that multiple interfaces can communicate with to
- launch the same command.
-
- Any VkComponent can register itself with a VkCmFactory object, to
- track the availability of the command. If the VkCmdFactory is
- deactivated, all registered components will be desensitized
- automatically. In addition, any VkComponent, registered or not, can
- register an cmdExecutedCallback member function with A VkCmdFactory
- object. This callback will be invoked when a command is executed by
- the Factory.
-
- A VkCmdFactory object can execute a VkCmd object instantiated by the
- application, but it is most useful in conjuntion with VkCmd objects
- that have registered themselves by name with the VkCmdRegistry. In
- this case, the name given to a VkCmdFactory instance specifies the
- name of the object to be created. Alternately, A VkCmdFactory object
- can be given a function to call to create a VkCmd object when one is
- needed.
-
-
-
- CCCCAAAALLLLLLLLBBBBAAAACCCCKKKKSSSS
- This class supports the following callbacks:
-
-
-
- activateStateChangedCallback
- cmdExecutedCallback
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- VVVVkkkkCCCCmmmmddddFFFFaaaaccccttttoooorrrryyyy((((3333xxxx)))) VVVVkkkkCCCCmmmmddddFFFFaaaaccccttttoooorrrryyyy((((3333xxxx))))
-
-
-
- SAMPLE CODE
- /usr/share/src/ViewKit/Commands/ByName/
- /usr/share/src/ViewKit/Commands/Factories/
- /usr/share/src/ViewKit/Commands/Factory2/
-
-
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- VkCmd, VkCmdManager, VkCmdRegistry
- _V_i_e_w_K_i_t _P_r_o_g_r_a_m_m_e_r'_s _G_u_i_d_e
- _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m, DEC Press, Bob Sheifler and Jim Gettys
- _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m _T_o_o_l_k_i_t, DEC Press, Paul Asente and Ralph Swick
- _T_h_e _O_S_F/_M_o_t_i_f _P_r_o_g_r_a_m_m_e_r_s _R_e_f_e_r_e_n_c_e, Prentice Hall, OSF
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-